package com.ruoyi.eduadmin.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.eduadmin.mapper.ItChangeClassLogMapper;
import com.ruoyi.eduadmin.domain.ItChangeClassLog;
import com.ruoyi.eduadmin.service.IItChangeClassLogService;

/**
 * 转班记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-12-28
 */
@Service
public class ItChangeClassLogServiceImpl implements IItChangeClassLogService 
{
    @Autowired
    private ItChangeClassLogMapper itChangeClassLogMapper;

    /**
     * 查询转班记录
     * 
     * @param id 转班记录主键
     * @return 转班记录
     */
    @Override
    public ItChangeClassLog selectItChangeClassLogById(Long id)
    {
        return itChangeClassLogMapper.selectItChangeClassLogById(id);
    }

    /**
     * 查询转班记录列表
     * 
     * @param itChangeClassLog 转班记录
     * @return 转班记录
     */
    @Override
    public List<ItChangeClassLog> selectItChangeClassLogList(ItChangeClassLog itChangeClassLog)
    {
        return itChangeClassLogMapper.selectItChangeClassLogList(itChangeClassLog);
    }

    /**
     * 新增转班记录
     * 
     * @param itChangeClassLog 转班记录
     * @return 结果
     */
    @Override
    public int insertItChangeClassLog(ItChangeClassLog itChangeClassLog)
    {
        return itChangeClassLogMapper.insertItChangeClassLog(itChangeClassLog);
    }

    /**
     * 修改转班记录
     * 
     * @param itChangeClassLog 转班记录
     * @return 结果
     */
    @Override
    public int updateItChangeClassLog(ItChangeClassLog itChangeClassLog)
    {
        return itChangeClassLogMapper.updateItChangeClassLog(itChangeClassLog);
    }

    /**
     * 批量删除转班记录
     * 
     * @param ids 需要删除的转班记录主键
     * @return 结果
     */
    @Override
    public int deleteItChangeClassLogByIds(Long[] ids)
    {
        return itChangeClassLogMapper.deleteItChangeClassLogByIds(ids);
    }

    /**
     * 删除转班记录信息
     * 
     * @param id 转班记录主键
     * @return 结果
     */
    @Override
    public int deleteItChangeClassLogById(Long id)
    {
        return itChangeClassLogMapper.deleteItChangeClassLogById(id);
    }
}
